<?php 

require ('../include/web.init.inc.php');
extract ( $_POST);
header("Content-type: application/json");
$current_user_info = UserSession::getSessionInfo();
$input_data = array ('lawer_id'=>$current_user_info["user"]["id"],'content' => $content,'ask_id'=>$ask_id);
$module_id = Ask::replyAsk ( $input_data );

$ask = Ask::getAskById($ask_id);

TbMessage::addUserMessage($ask["user_id"],"你发布的咨询有律师解答了，快去看看吧。","咨询回复",$module_id,true);

// if($user_info){
$ret = json_encode(array("code"=>1,"data"=>array('a' => 1)));
// }else{
// 	$ret = json_encode(array("code"=>0,"msg"=>"用户名密码错误"));
// }

echo $ret;